<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>{if !empty($title)}{$title} - {/if}{if !empty($_W['page']['sitename'])}{$_W['page']['sitename']}{else}{$_W['account']['name']}{/if}</title>
	<meta name="viewport" content="initial-scale=1, maximum-scale=1">
	<link rel="shortcut icon" href="/favicon.ico">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	{if defined('LOCAL_DEVELOPMENT')}
	<link rel="stylesheet" href="//res.wx.qq.com/open/libs/weui/0.3.0/weui.css">
	<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.css">
	<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.css">
	{else}
	<link rel="stylesheet" href="//res.wx.qq.com/open/libs/weui/0.3.0/weui.min.css">
	<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.css">
	<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.css">
	{/if}
	<link rel="stylesheet" type="text/css" href="{$_W['siteroot']}addons/superman_sign/template/mobile/css/sign.css">
	<script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	{if defined('LOCAL_DEVELOPMENT')}
	<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.js' charset='utf-8'></script>
	<script type='text/javascript' src='{$_W["siteroot"]}addons/superman_sign/template/mobile/js/zepto.fx.js' charset='utf-8'></script>
	<script type='text/javascript' src='{$_W["siteroot"]}addons/superman_sign/template/mobile/js/selector.js' charset='utf-8'></script>
	{else}
	<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
	<script type='text/javascript' src='{$_W["siteroot"]}addons/superman_sign/template/mobile/js/zepto.fx.min.js' charset='utf-8'></script>
	<script type='text/javascript' src='{$_W["siteroot"]}addons/superman_sign/template/mobile/js/selector.min.js' charset='utf-8'></script>
	{/if}
	<script>
		function _removeHTMLTag(str) {
			if(typeof str == 'string'){
				str = str.replace(/<script[^>]*?>[\s\S]*?<\/script>/g,'');
				str = str.replace(/<style[^>]*?>[\s\S]*?<\/style>/g,'');
				str = str.replace(/<\/?[^>]*>/g,'');
				str = str.replace(/\s+/g,'');
				str = str.replace(/&nbsp;/ig,'');
			}
			return str;
		}
		window.sysinfo = {
			'uniacid': "{$_W['uniacid']}",
			'acid': "{$_W['acid']}",
			'openid': "{$_W['openid']}",
			'uid': "{$_W['uid']}",
			'siteroot': "{$_W['siteroot']}",
			'siteurl': "{$_W['siteurl']}",
			'attachurl': "{$_W['attachurl']}",
			'attachurl_local': "{$_W['attachurl_local']}",
			'MODULE_URL': '{MODULE_URL}',
			'cookie' : {
				'pre': "{$_W['config']['cookie']['pre']}"
			},
			'_debug': '{LOCAL_DEVELOPMENT}',
			'_sign': {php echo json_encode($sign_log)}
		};
		jssdkconfig = {php echo json_encode($_W['account']['jssdkconfig']);} || {};
		jssdkconfig.debug = false;
		jssdkconfig.jsApiList = [
			'checkJsApi',
			'onMenuShareTimeline',
			'onMenuShareAppMessage',
			'onMenuShareQQ',
			'onMenuShareWeibo',
			'hideMenuItems',
			'showMenuItems',
			'hideAllNonBaseMenuItem',
			'showAllNonBaseMenuItem',
			'translateVoice',
			'startRecord',
			'stopRecord',
			'onRecordEnd',
			'playVoice',
			'pauseVoice',
			'stopVoice',
			'uploadVoice',
			'downloadVoice',
			'chooseImage',
			'previewImage',
			'uploadImage',
			'downloadImage',
			'getNetworkType',
			'openLocation',
			'getLocation',
			'hideOptionMenu',
			'showOptionMenu',
			'closeWindow',
			'scanQRCode',
			'chooseWXPay',
			'openProductSpecificView',
			'addCard',
			'chooseCard',
			'openCard'
		];
		wx.config(jssdkconfig);
	</script>
</head>
<body>